/**
 * OAuth客户端管理
 */
import request from '@/utils/request'

export function page(queryParams) {
  return request({
    url: '/uum-admin/api/v1/oauth-clients/page',
    method: 'get',
    params: queryParams
  })
}

export function detail(id) {
  return request({
    url: '/uum-admin/api/v1/oauth-clients/detail/' + id,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/uum-admin/api/v1/oauth-clients/add',
    method: 'post',
    data: data
  })
}

export function update(data) {
  return request({
    url: '/uum-admin/api/v1/oauth-clients/update',
    method: 'put',
    data: data
  })
}

export function del(ids) {
  return request({
    url: '/uum-admin/api/v1/oauth-clients/delete/'+ids,
    method: 'delete'
  })
}

